<template>
	<view>
		<bangs></bangs>
		<view class="bg-white d-flex a-center border-bottom border-light-secondary"  style="height: 90rpx;position: fixed;left: 0;right: 0;z-index: 100;">
			<span @click="oldreute" :class="lefticon?lefticon:leftretur"  class="ml-2"></span>
			<view class="d-flex flex-1 j-center a-center" style="height: 65rpx;">{{ middlebar }}</view>
			<slot name="right-click">
				
			</slot>
		</view>
		<view style="height: 90rpx;"></view>
	</view>
</template>

<script>
	export default {
		props:{
			lefticon:{
				type:String,
				default:""
			},
			middlebar:{
				type:String,
				default:""
			}
		},
		methods:{
			oldreute(){
				// 退回到上一页
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style>
	leftretur{
		width:85rpx;
	}
	
</style>
